package com.music.wangyi.utils

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class request {

    private val baseUrl = "http://localhost:3000"

    val retrofit by lazy { retrofit2.Retrofit.Builder().baseUrl(baseUrl).addConverterFactory(GsonConverterFactory.create()).build() }

    companion object {
        fun instance():Retrofit{
            return request().retrofit
        }
    }

}